package com.esixnetwork.apollo.front.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * Created by lishangmin on 2017/9/11.
 */
@ApiModel
public class TableData<T> {

    @ApiModelProperty(value = "总条数")
    public Integer total;

    @ApiModelProperty(value = "当前页")
    public Integer page;

    @ApiModelProperty(value = "数据")
    public List<T> data;

    public TableData() {
    }

    public TableData(Integer total, Integer page, List<T> data) {
        this.total = total;
        this.page = page;
        this.data = data;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
